<?php use_helper('JavascriptBase') ?>
<h1>Testcase List</h1>

<table class="tableList">
  <thead>
    <tr>
      
      <!-- <th>Estimateexecution</th> -->
      <th>Username</th>
      <th>Component</th>
      <th>Testsuite Name</th>
      <th>Title</th>
      <th><th>
      
      <!--<th>Steps</th>
      <th>Expectedresult</th>
      <th>Applicable</th>-->
    </tr>
  </thead>
  <tbody>
    <?php foreach ($testcase_list as $testcase): ?>
    <tr>
      
      <td><?php echo $testcase['User']['username'] ?></td>
      <td>
      	<a href="#" onclick="ajaxUpdater('divDescription','<?php echo url_for('testcase/listComponent?id=1') ?>')"><?php echo $testcase['Component']['name'] ?></a>       
      </td>
      <td>
      	<a href="#" onclick="ajaxUpdater('divDescription','<?php echo url_for('testcase/listTestSuite?id=1') ?>')"><?php echo $testcase['Testsuite']['name']?></a>
      </td>  
      <td><?php echo $testcase->gettitle() ?></td>
      <td><a href="#" onclick="ajaxUpdater('divDescription','<?php echo url_for('testcase/testCaseById?id=1') ?>')">View Details</a></td>
     <td>
      	<a href="#" onclick="ajaxUpdater('divDescription','<?php echo url_for('testcase/edit?id='.$testcase['id']) ?>')">Edit</a> 
      </td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <br>
    
  <div id="divDescription"></div>
		



